package com.vigmonk.utils 
{
	import flash.external.ExternalInterface;	
	
	/**
	 * ArrayUtils.as
	 * @author VIGMONK.com
	 */
	public class ExternalUtils 
	{
		
	}

	/**
	 * 외부에 함수가 있는 없는지 확인.
	 * 
	 * @param _exFn 외부 함수명
	 * 
	 * @returns Boolean
	 * 
	 * @langversion ActionScript 3.0
	 * @playerversion Flash 9.0
	 * @tiptext
	 */
	public static function isExternalFn(_exFn:String):Boolean
	{
		var externalFn:String = _exFn;
		var rtn:Object = ExternalInterface.call("eval", "typeof "+externalFn);
		
		if (rtn=="function") {
			return true;
			//ExternalInterface.call(externalFn);
		} else {
			return false;
			//ExternalInterface.call("alert", "error!! "+externalFn);
		}
	}
}
